package com.mokio.service.impl;

import com.mokio.entity.ProductType;
import com.mokio.mapper.ProductTypeMapper;
import com.mokio.service.ProductTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: xiaomishop
 * @ClassName productTypeServiceImpl
 * @description:
 * @author: mokio
 * @create: 2024−12-10 19:49
 * @Version 1.0
 **/
@Service
public class productTypeServiceImpl implements ProductTypeService {
    @Autowired
    ProductTypeMapper productTypeMapper;

    @Override
    public List<ProductType> getAllProductType() {
        List<ProductType> productTypes = productTypeMapper.selectByExample(null);
        return productTypes;
    }
}
